package com.genius.system.bo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "修改字典BO", description = "从客户端，由用户传入的数据封装在此entity中")
public class UpdateDictBO {

    @NotNull(message = "字典ID不能为空")
    @ApiModelProperty("字典ID")
    private Long dictId;

    @NotBlank(message = "字典名称不能为空")
    @ApiModelProperty("字典名称")
    private String dictName;

    @NotBlank(message = "字典类型不能为空")
    @ApiModelProperty("字典类型")
    private String dictType;

    @NotBlank(message = "状态不能为空")
    @ApiModelProperty("状态")
    private String status;

    @Length(max = 20,message = "备注不能超过20个字符")
    @ApiModelProperty("备注")
    private String remark;
}
